
$(function(){
	$.ajax({
		url: urlcore + "/api/user/getadmin",
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success: function(data) {
			if(data.success == true) {
				if(data.data!=null && data.data!=""){
					   if(data.data.userType==3){
					   	userdssddid = data.data.id;
					   }else{
					   	  window.location.href="quanxian.html";	
					   }
				}else{
					window.location.href="gotoindexlogin.html";
				}
			}else{
				window.location.href="gotoindexlogin.html";
			}
		},
		error: function() {
			/* Act on the event */
			alert("error");
		}
	});
})
	
